.app-cart {
    width: 100vw;
    height: calc(100vh - 120rpx);
    display: flex;
    flex-direction: column;
    background-color: #FAFAFA;

    .cart-header {
        width: 100%;
        box-sizing: border-box;
        padding: 30rpx;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;

        >text {
            color: #333333;
            font-weight: 500;
            font-size: 30rpx;
        }
    }

    .cart-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 30rpx;
        padding-bottom: 60rpx;
        overflow-y: scroll;

        .cart-item {
            width: 100%;
            box-sizing: border-box;
            padding: 30rpx;
            background-color: white;
            border-radius: 16rpx;
            display: flex;
            flex-direction: column;
            margin-bottom: 30rpx;

            :deep(.uni-checkbox-input) {
                width: 34rpx;
                height: 34rpx;
                border-radius: 50%;
                margin-right: 5rpx;
                
                &::before {
                    color: white !important;
                }
                
                &:checked {
                    background-color: #FF7F36 !important;
                    border-color: #FF7F36 !important;
                }
            }

            :deep(.uni-label-pointer) {
                color: #333333;
                font-weight: 500;
                font-size: 30rpx;
            }

            .cart-child {
                width: 100%;
                display: flex;
                align-items: center;
                margin-top: 30rpx;
                gap: 30rpx;

                >image {
                    width: 154rpx;
                    height: 154rpx;
                    border-radius: 16rpx;
                    flex-shrink: 0;
                }

                .cart-info {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;

                    >text {
                        &:first-child {
                            color: #333333;
                            font-weight: 500;
                            font-size: 30rpx;
                        }

                        &:nth-child(2) {
                            color: rgb(175, 175, 175);
                            font-weight: 400;
                            font-size: 26rpx;
                            margin-top: 10rpx;
                            background-color: #FAFAFA;
                            box-sizing: border-box;
                            padding: 7rpx;
                        }

                        &:last-child {
                            color: #F54730;
                            font-weight: 400;
                            font-size: 34rpx;
                            margin-top: auto;
                            margin-bottom: 0;
                        }
                    }
                }
            }

            .uni-numbox {
                margin-top: 30rpx;
                align-self: flex-end;
            }
        }
    }

    .cart-footer {
        width: 100%;
        height: 102rpx;
        display: flex;
        align-items: center;
        background-color: white;
        position: fixed;
        bottom: 0;
        left: 0;
        box-sizing: border-box;
        padding: 0 30rpx;
        flex-shrink: 0;

        :deep(.uni-checkbox-input) {
            width: 34rpx;
            height: 34rpx;
            border-radius: 50%;
            margin-right: 12rpx;
            
            &::before {
                color: white !important;
            }
            
            &:checked {
                background-color: #FF7F36 !important;
                border-color: #FF7F36 !important;
            }
        }

        >uni-checkbox {
            height: 34rpx !important;
        }

        .cart-price {
            display: flex;
            align-items: center;
            gap: 10rpx;
            margin-left: 60rpx;

            >text {
                color: #333333;
                font-weight: 400;
                font-size: 30rpx;

                &:last-child {
                    color: #F54730;
                    font-weight: bold;
                }
            }
        }

        .cart-button {
            width: 196rpx;
            height: 78rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #F54730;
            border-radius: 2rpx;
            margin-left: auto;
            margin-right: 0;

            >text {
                color: white;
                font-weight: 400;
                font-size: 30rpx;
            }
        }
    }
}

/* 全局覆盖checkbox样式 */
:deep(checkbox) .wx-checkbox-input,
:deep(.uni-checkbox-input) {
    border-radius: 50% !important;
    width: 34rpx !important;
    height: 34rpx !important;
    border: 1px solid #d1d1d1 !important;
}

:deep(checkbox) .wx-checkbox-input.wx-checkbox-input-checked,
:deep(.uni-checkbox-input.uni-checkbox-input-checked) {
    background-color: #FF7F36 !important;
    border-color: #FF7F36 !important;
}

:deep(checkbox) .wx-checkbox-input.wx-checkbox-input-checked::before,
:deep(.uni-checkbox-input.uni-checkbox-input-checked::before) {
    color: #ffffff !important;
    font-size: 28rpx;
}